#include "math_lib.h"
#include <cmath>

double my_add(double a, double b) {
    return a + b;
}

double my_exp(double x) {
    return std::exp(x);
}

double my_sin(double x) {
    return std::sin(x);
}

std::vector<double> calculate_distances(const std::vector<Point>& points) {
    std::vector<double> distances;
    int n = points.size();
    for (int i = 0; i < n; ++i) {
        for (int j = i + 1; j < n; ++j) {
            double dx = points[i].x - points[j].x;
            double dy = points[i].y - points[j].y;
            distances.push_back(std::sqrt(dx * dx + dy * dy));
        }
    }
    return distances;
}